import request from '@/utils/request'

// 查询健康筛查列表
export function listScreening(query) {
  return request({
    url: '/human/screening/list',
    method: 'get',
    params: query
  })
}

// 查询健康筛查详细
export function getScreening(screeningId) {
  return request({
    url: '/human/screening/' + screeningId,
    method: 'get'
  })
}

// 新增健康筛查
export function addScreening(data) {
  return request({
    url: '/human/screening',
    method: 'post',
    data: data
  })
}

// 修改健康筛查
export function updateScreening(data) {
  return request({
    url: '/human/screening',
    method: 'put',
    data: data
  })
}

// 删除健康筛查
export function delScreening(screeningId) {
  return request({
    url: '/human/screening/' + screeningId,
    method: 'delete'
  })
}
